package com.purchase.ml.bean.req.prod;

import com.purchase.ml.consts.Constants;
import com.purchase.ml.entity.prod.SysProduct;
import com.purchase.ml.entity.prod.SysProductPic;
import com.purchase.ml.entity.prod.SysProductSku;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author :zxm
 * @date :2021/2/25 18:43
 * @description :some description
 **/

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "商品修改model")
public class SysProdEditDto extends SysProduct implements Serializable { //todo：main: 继承对象只能是PageDto或者不继承

    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id",required = true )
    @NotNull(message = "ID tidak boleh kosong")
    private Long id;

    private Long categoryId;  //todo ： 无需参数

    /**
     * 产品名称
     */
    @ApiModelProperty(value = "产品名称")
    private String productName;

    /**
     * 产品描述
     */
    @ApiModelProperty(value = "产品描述")
    private String description;

    /**
     * 品牌
     */
    @ApiModelProperty(value = "品牌")
    private String brand;

    /**
     * 产品型号
     */
    @ApiModelProperty(value = "产品型号")
    private String productModel;

    /**
     * 成本
     */
    @ApiModelProperty(value = "成本")
    private BigDecimal priceCost;

    /**
     * 主经销商价格
     */
    @ApiModelProperty(value = "主经销商价格")
    private BigDecimal priceMasterDealer;

    /**
     * 经销商价格
     */
    @ApiModelProperty(value = "经销商价格")
    private BigDecimal priceDealer;

    /**
     * 状态：0正常；1下线
     */
    @ApiModelProperty(value = "状态：0正常；1下线")
    private Integer state;

    @ApiModelProperty(value = "商品Sku")
    private SysProductSku skuDate;

    @ApiModelProperty(value = "商品图片")
    private List<SysProductPic> picDate;

    @ApiModelProperty(value = "图片索引")
    private Integer index;

    private static final long serialVersionUID = 1L;
}